﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Elf.Data.Entity.Management;
using Service.Data;
using Elf.Data.Entity;

namespace Elf.Sample.Service
{
    [ApplicationRequestContext]
    public class DataService : IDataService
    {
        public void DoWork()
        {
            try
            {
                Repository<Person, DatabaseContext> repository = new Repository<Person, DatabaseContext>();

                var all = repository.FindAll();

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            throw new InvalidOperationException();
        }

        public string ReturnString(string value)
        {
            return value;
        }
    }
}
